<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'order-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'uid'); ?>
		<?php echo $form->textField($model,'uid'); ?>
		<?php echo $form->error($model,'uid'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'pay_type'); ?>
		<?php echo $form->textField($model,'pay_type'); ?>
		<?php echo $form->error($model,'pay_type'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'total'); ?>
		<?php echo $form->textField($model,'total'); ?>
		<?php echo $form->error($model,'total'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'did'); ?>
		<?php echo $form->textField($model,'did'); ?>
		<?php echo $form->error($model,'did'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'coin'); ?>
		<?php echo $form->textField($model,'coin'); ?>
		<?php echo $form->error($model,'coin'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'freight'); ?>
		<?php echo $form->textField($model,'freight'); ?>
		<?php echo $form->error($model,'freight'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'total_final'); ?>
		<?php echo $form->textField($model,'total_final'); ?>
		<?php echo $form->error($model,'total_final'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'consignee'); ?>
		<?php echo $form->textField($model,'consignee',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'consignee'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'phone'); ?>
		<?php echo $form->textField($model,'phone',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'phone'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'email'); ?>
		<?php echo $form->textField($model,'email',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'email'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'pre'); ?>
		<?php echo $form->textField($model,'pre',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'pre'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'address'); ?>
		<?php echo $form->textField($model,'address',array('size'=>60,'maxlength'=>200)); ?>
		<?php echo $form->error($model,'address'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'hongyun_return'); ?>
		<?php echo $form->textField($model,'hongyun_return'); ?>
		<?php echo $form->error($model,'hongyun_return'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'coin_return'); ?>
		<?php echo $form->textField($model,'coin_return'); ?>
		<?php echo $form->error($model,'coin_return'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'receipt_type'); ?>
		<?php echo $form->textField($model,'receipt_type'); ?>
		<?php echo $form->error($model,'receipt_type'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'receipt_field1'); ?>
		<?php echo $form->textField($model,'receipt_field1',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'receipt_field1'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'receipt_field2'); ?>
		<?php echo $form->textField($model,'receipt_field2',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'receipt_field2'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'status'); ?>
		<?php echo $form->textField($model,'status'); ?>
		<?php echo $form->error($model,'status'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'dateline'); ?>
		<?php echo $form->textField($model,'dateline'); ?>
		<?php echo $form->error($model,'dateline'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'updated'); ?>
		<?php echo $form->textField($model,'updated'); ?>
		<?php echo $form->error($model,'updated'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->